package com.duying.gdc.manager;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.duying.gdc.GdBaseManager;

public class GdMcPersonManager  extends GdBaseManager{
	
	public List getByImportIdOrderByXH(Integer importId){
		String hql = "from GdMcPerson gmp where gmp.gdMcImport.id =:importId order by gmp.xh asc";
		Map map = new HashMap();
		map.put("importId", importId);
		List list = this.baseDao.getByHQL(hql, map);
		return list;
	}
	
	public List getByImportIdOrderByZQZH(Integer importId){
		String hql = "from GdMcPerson gmp where gmp.gdMcImport.id =:importId order by gmp.zqzh asc";
		Map map = new HashMap();
		map.put("importId", importId);
		List list = this.baseDao.getByHQL(hql, map);
		return list;
	}
}
